package net.zhuike.novel.app.bean;

/**
 * Created by qi.wang on 2017/7/27.
 */

public class DownloadInfo {
    public static final long TOTAL_ERROR = -1;//获取进度失败
    /**
     * 是否已经开始下载
     */
    public boolean isStartDownload = false;

    /**
     * 是否中断下载
     */
    public boolean isCancel = false;

    /**
     * 是否下载完成
     */
    public boolean isFinish = false;
    public int start;

    public int end;
    private String url;
    private long total;
    private long progress;
    private String fileName;
    public DownloadInfo( String url,int start, int end){
        this.url = url;
        this.start = start;
        this.end = end;
    }
    public DownloadInfo(){

    }
    public DownloadInfo(String url) {
        this.url = url;
    }

    public String getUrl() {
        return url;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public long getProgress() {
        return progress;
    }

    public void setProgress(long progress) {
        this.progress = progress;
    }
}
